package com.study.mike.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
 * @author KangHui
 * @Date 2022/7/15 9:49
 */
@Data
@TableName("resources")
public class ResourceDO {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 资源名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 父资源id
     */
    @TableField(value = "parent_id")
    private Long parentId;


}
